export const constantRouterMap = [

    {
        path: '/user/new',
        meta: {
            type: "user",
            icon: 'el-icon-star-off',
            title: '最新动态'
        }
    },
    {
        path: '/user/social',
        meta: {
            type: "user",
            icon: 'el-icon-mobile-phone',
            title: '社交圈'
        }
    },
    {
        path: '/user/blog',
        redirect: '/user/blog/main',
        meta: {
            type: "user",
            icon: 'el-icon-edit-outline',
            title: '博客列表'
        }
    },
    {
        path: '/user/project',
        meta: {
            type: "user",
            icon: 'el-icon-service',
            title: '开源项目'
        }
    }, 
    {
        path: "/404",
    },
    {
        path: '/',
        redirect: '/user/new',
    },
    {
        path: "*",
        redirect: "/404"
    },

    //mobile
    {
        path: '/mobile/user/blog',
        redirect: '/mobile/user/blog/main',
        meta: {
            type: "mobile",
            icon: 'edit',
            title: '博客'
        },
        children: [
            {
                path: 'main',
                meta: {
                    scrollTop: true
                }
            },
            {
                path: 'details/:id',
                meta: {
                    scrollTop: true
                }
            }
        ]

    },
    {
        path: '/mobile/user/project',
        redirect: '/mobile/user/project/main',
        meta: {
            type: "mobile",
            icon: 'like-o',
            title: '项目'
        },
        children: [
            {
                path: 'main',
                meta: {
                    scrollTop: true
                }
            },
            {
                path: 'details/:name',
                meta: {
                    scrollTop: true
                }
            }
        ]

    },
    {
        path: '/mobile/user/self',
        redirect: '/mobile/user/self/main',
        meta: {
            type: "mobile",
            icon: 'contact',
            title: '个人'
        },
        children: [
            {
                path: 'main',
                meta: {
                    scrollTop: true
                }
            }
        ]

    },
]